package com.hui.entity.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hui.util.module.customizeserializer.DoubleSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 购物车Vo
 */
@ApiModel(
        value = "StoreCartQueryVo对象",
        description = "购物车表返回数据"
)
@Data
public class StoreCartQueryVo implements Serializable {

    @ApiModelProperty("购物车表ID")
    private Long id;
    @ApiModelProperty("用户ID")
    private Long uid;
    @ApiModelProperty("类型")
    private String type;
    @ApiModelProperty("商品ID")
    private Long productId;
    @ApiModelProperty("商品属性")
    private String productAttrUnique;
    @ApiModelProperty("商品数量")
    private Integer cartNum;
    @ApiModelProperty("拼团id")
    private Long combinationId;
    @ApiModelProperty("秒杀产品ID")
    private Long seckillId;
    @ApiModelProperty("砍价id")
    private Long bargainId;
    @ApiModelProperty("商品信息")
    private StoreProductVo productInfo;
    @ApiModelProperty("成本价")
    @JsonSerialize(
            using = DoubleSerializer.class
    )
    private Double costPrice;
    @ApiModelProperty("真实价格")
    @JsonSerialize(
            using = DoubleSerializer.class
    )
    private Double truePrice;
    @ApiModelProperty("真实库存")
    private Integer trueStock;
    @JsonSerialize(
            using = DoubleSerializer.class
    )
    @ApiModelProperty("vip真实价格")
    private Double vipTruePrice;
    @ApiModelProperty("唯一id")
    private String unique;
    @ApiModelProperty("是否评价")
    private Integer isReply;
}
